<%= div_for(message, :class => (message.is_unread?(@actor) ? 'unread' : '')) do %>
  <div class="media">
    <div class="pull-left">
      <%= link_to image_tag(message.sender.logo.url(:small),
                            :title => message.sender.name,
                            :alt => message.sender.name),
                   message.sender.subject %>

    </div>

  <div class="media-body"> 
    <h6 class="media-heading">
      <%= link_to truncate_name(message.sender.name), message.sender.subject %>
      <div class="post_time_ago small">
        <%= t('time.ago', :time => time_ago_in_words(message.updated_at)) %>
      </div>
    </h6>       
    <p class="info_action word-break pre-message">
      <%= raw(message.body) %>
    </p>
  </div>
</div>
<% end %>

